import React from 'react'
// import { createRoot } from 'react-dom/client'
import ReactDOM from 'react-dom/client'
import './index.css'
import App from './App.jsx'

import 'antd/dist/reset.css'
import { ConfigProvider } from 'antd'
import zhCN from 'antd/locale/zh_CN.js'
import { HashRouter as Router, Routes, Route } from 'react-router-dom'
import LogOut from './pages/logOut.jsx'

// createRoot(document.getElementById('root')).render(
  ReactDOM.createRoot(document.getElementById('root')).render(
    <Router>
      <ConfigProvider locale={zhCN}>
        <Routes>
          <Route path='/' element={<LogOut />} />
          <Route path='/admin/*' element={<App />} />
        </Routes>
      </ConfigProvider>
    </Router>
)
